package com.hpeu_12.day1229;

import static java.lang.Math.PI;
import static java.lang.System.out;
public class StaticImportDemo {
	//计算圆面积
	public double calCircleArea(double r) {
		return 	Math.PI * r * r;
	}
	
	//计算球的面积
	public static double calBallArea(double r) {
		return 4*PI*r*r;
	}
	public static void main(String[] args) {
		double area = StaticImportDemo.calBallArea(2);
		out.println("球的面积"+area);
		
	}
}
